package com.wsjzzcbq.qianyuan.sys.param;

import com.wsjzzcbq.qianyuan.common.bean.BasicParam;
import lombok.Data;
import javax.validation.constraints.NotEmpty;

/**
 * AddQuartzJobParam
 *
 * @author wsjz
 * @date 2022/03/22
 */
@Data
public class AddQuartzJobParam implements BasicParam {

    private String id;

    /**
     * 任务名称
     */
    @NotEmpty(message = "任务名称不能为空")
    private String name;

    /**
     * 任务描述
     */
    @NotEmpty(message = "任务描述不能为空")
    private String description;

    /**
     * 执行类
     */
    @NotEmpty(message = "执行类不能为空")
    private String jobClass;

    /**
     * 执行时间
     */
    @NotEmpty(message = "执行时间不能为空")
    private String cronExpression;
}
